package com.gzf.feign;

import com.gzf.dto.Animal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "seata-animal")
public interface AnimalFeignClient {

    @PostMapping("/animal/insert")
    Boolean insert(@RequestBody Animal animal);
}
